cmake_minimum_required(VERSION 3.10)

project(learn-opengl VERSION 1.0)

set(CMAKE_CXX_STANDARD 14)
set(CMAKE_CXX_STANDARD_REQUIRED ON)

set(CMAKE_LIBRARY_OUTPUT_DIRECTORY ${CMAKE_SOURCE_DIR}/output/lib)
set(CMAKE_ARCHIVE_OUTPUT_DIRECTORY ${CMAKE_SOURCE_DIR}/output/lib)
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_SOURCE_DIR}/output)

include_directories(thirdparty/assimp/include)
include_directories(thirdparty/glad/include)
include_directories(thirdparty/glfw/include)
include_directories(thirdparty/glm)
include_directories(thirdparty/imgui/include)
include_directories(thirdparty/stb)
include_directories(include)

add_subdirectory(thirdparty/assimp)
add_subdirectory(thirdparty/glad)
add_subdirectory(thirdparty/glfw)
add_subdirectory(thirdparty/glm)
add_subdirectory(thirdparty/imgui)
add_subdirectory(thirdparty/stb)
add_subdirectory(src)
add_subdirectory(examples)
